<div class="box_2">
    <div class="title reg bold"> 
        <!--<a href="#" class="detail_search inline-block align_right fright">See all</a> -->
        <span class="inline-block fleft align_left" style="width:415px"><h3> <a href="<?= base_url();?>member/myaccount"> My Account </a></h3></span>
        <a class="color_3" style="margin-right: 20px" href="<?= base_url();?>member/car/add">Sale Car</a>
        <a class="color_3" style="margin-right: 20px" href="<?= base_url();?>member/car/post_requirement">Post Requirement</a>
        <div class="clear"></div>
    </div>
    <div class="clear"> </div>
    <div id="inner" style="text-align: justify">
        <div style="width: 300px; float: left; height: auto">
            <ul>
                <li> <strong> <?= $member['info']->first_name . ' ' . $member['info']->last_name; ?> &nbsp; <?= '#' . $member['info']->id; ?><a href="<?= base_url();?>member/register/edit/1"> &nbsp; Edit Profile</a></strong> </li>
                <li> Created on : <?= $member['info']->created_on; ?>  </li>
                <li> Last Login : <?= $member['info']->last_login; ?>  </li>
            </ul>
        </div>

        <div style="width: 200px; float: right; height: auto">
            <ul>
                <li><a href="<?= base_url();?>member/myaccount/change_password"> Change Password </a></li>
                <li><a href="<?= base_url();?>member/car/add"> Add New Car for Sale </a></li>
                <li><a href="<?= base_url();?>member/myaccount/delete/<?= $member['info']->id; ?>" onclick="return confirm('Are you sure you want to Delete Account? \n It will delete all the information of your account. ')"> Delete Account </a></li>
            </ul>
        </div>
    </div>
</div> <!-- End of Box_2 -->


<?php
if ($member['listing']) {
    ?>

    <div class="box_2">
        <div class="title reg bold"> 
            <!--<a href="#" class="detail_search inline-block align_right fright">See all</a> -->
            <span class="inline-block fleft align_left"><h3> Listing </h3></span>
            <div class="clear"></div>
        </div>

        <div class="clear"> </div>

        <div id="inner">


            <?php foreach ($member['listing'] as $listing): ?>
                <div class="listing">
                    <img src="<?= base_url(); ?>assets/images/data/car/<?= $this->management_model->get_version($listing->type, $listing->version)->image; ?>" width="100" height="75" alt="">
                    <div id="block" style="float:left; width:380px" >
                        <h3> <a href="#"><?= $this->management_model->get_version($listing->type, $listing->version)->version; ?> </a>
                            <?php if ($listing->status == 51) { ?> 
                                <span class="color_3"> ( Active ) </span> 
                            <?php } else { ?>
                                <span class="color_3"> ( Inactive ) </span> <?php } ?>
                        </h3>


                        <p class="font_2"> 
                            Added on : <?= $listing->posted_on; ?> |
                            ID # <?= $listing->id; ?> |
                            Viewed  # 326
                        </p>
                        <span class="font_3 bold color_4"> Free Listing | <a href="<?= base_url();?>member/listing/convert_featured/<?= $listing->id; ?>"> Convert to Premium? </a></span> </br>

                        <p>
                            <span style="margin-right: 10px"> <a href="<?= base_url();?>member/car/edit/<?= $listing->id; ?>"> Edit </a> | </span>
                            <span style="margin-right: 10px"> <a href="<?= base_url();?>member/myphoto/photo/<?= $listing->id; ?>"> Photos </a> | </span>
                            <span style="margin-right: 10px"> <a href="<?= base_url();?>member/myvideo/video/<?= $listing->id; ?>"> Videos </a> | </span>

                            <span style="margin-right: 10px"> <a href="<?= base_url();?>member/car/delete/<?=$listing->id;?>" onclick="return confirm('Are you sure you want to Delete Car ? \n It will delete all the information. ')"> Delete </a> </span>
                        </p>      
                    </div>
                    <div id="price"> Rs. 2,75,000</div>

                </div>
            <?php endforeach; ?>





        </div>

    </div> <!-- End of Box_2 -->

    <?php
}
?>

